For the second parameter, you can specify whether you want 1 for an OK button, 2 for a Cancel button, 3 for an OK button and a Cancel button with either the OK button highlighted (with a double border, which indicates that the button accepts the return or enter key) or 4 with the Cancel button highlighted.
For the third parameter, you can specify text of up to 255 characters to be inserted in the alert dialog. Because the scripting line with the XCMD must be one line, you can use a variable as a container for the text in order to keep the XCMD line on one line.
For the fourth parameter, specify 0 for no beep sound when the alert appears. Specify 1 if you want a beep sound when the alert appears.
The XCMD returns an integer value to the function the result only for alert dialogs with two buttons. 1 is returned for OK, and 2 is returned for Cancel.